"""
    Modulo que contiene todo lo que no cabe dentro de las otros modulos.
"""

class Coordinate():
    
    def __init__(self,x=0,y=0):
        self.x = x
        self.y = y
        
    def __str__(self):
        return "("+str(self.x)+", "+str(self.y)+")"  
    
    """
        Invest the coordinates because x(row) and y(column) in the board are y and x in the screen
    """
    def invest(self):
        return Coordinate(self.y,self.x)
    
    def set(self,coord):
        self.x = coord.x
        self.y = coord.y
    
    def equal(self,coord):
        if coord.x == self.x and coord.y == self.y:
            return True
        else:
            return False
        